package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: XMQ
 * Date: 2022-05-19
 * Time: 9:39
 */
public class DisplayOpeartion implements IOperation {
    @Override
    public void work(BookList booList) {
        System.out.println("显示图书！");
        int currentSize = booList.getUseSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = booList.getBook(i);
            System.out.println(book);
        }
    }
}
